package com.grapecc.springcloud.service.impl;

import com.grapecc.springcloud.dao.PaymentDao;
import com.grapecc.springcloud.entities.Payment;
import com.grapecc.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 卖糖的兜兜
 * @version 1.0.0
 * @ClassName PaymentServiceImpl.java
 * @Description TODO
 * @createTime 2022年02月02日 20:52:00
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    public Payment getPaymentId(long id){
        return paymentDao.getPaymentId(id);
    }
}
